﻿using System.ComponentModel.DataAnnotations;

namespace ConsoleApp1
{
    public class  rec{ 
    private double len { get; set; }
    private double wid { get; set; }
        public rec(double len1,double wid1)
        {
            len = len1;
            wid = wid1;
        }
        public double printzc()
        {
            return 2*(len+wid);
        }
        public double printmj()
        {
            return len*wid;
        }

    }
    class program {
        static void Main(string[] args)
        {
            rec r = new rec(5.0, 3.0);
            Console.WriteLine(r.printzc());
            Console.WriteLine(r.printmj());
        }
    }

}
